#ifndef APP_FUNCTION_HH
#define APP_FUNCTION_HH
#include "afxwin.h"
#include <fstream>
using namespace std;

CString findfactoryuser(CString fr);
void Createfactuser(CString na);
void Createfenleifolder(CString facname,CString fenleistr);
void fenleiwrite(CString factuser,CString fenleistr);
BOOL findfenleistring(CString factuser, CString fenleistr);
void filefirtstraddtolistbox(int mode,CString factuser,CListBox *pt);
void factoryandfenleiaddtreebox(CTreeCtrl *pTree);
void treectrlbox_addfathernode(CTreeCtrl *pTree,CString mstr);
void treectrlbox_addsecondnode(CTreeCtrl *pTree,CString fantherstr,CString secondstr);
void treectrlbox_addthirdnode(CTreeCtrl *pTree,CString fantherstr,CString secondstr,CString thirdstr);

BOOL modifyfacturename(CString oldname,CString newname,BOOL md);
BOOL modifyfenleiname(CString facname,CString oldname,CString newname,BOOL md);
BOOL  MyDeleteDir(char  *DirName);
BOOL DeleteFolder(LPCTSTR lpszPath);
BOOL CopyFolder(LPCTSTR lpszFromPath,LPCTSTR lpszToPath);
BOOL MoveFolder(LPCTSTR lpszFromPath,LPCTSTR lpszToPath);
BOOL ReNameFolder(LPCTSTR lpszFromPath,LPCTSTR lpszToPath);
#endif
